package cn.lx.service;

import cn.lx.mapper.IndexMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Collection;
import java.util.Iterator;

public class Test {

    @Autowired
    private IndexMapper indexMapper;
    @Autowired
    IndexService indexService;
    public static void main(String[] args) {
        LikeSearch<String> search=new LikeSearch<String>();
        search.put("湖南","湖南");
        search.put("湖北","湖北");
        search.put("南京","南京");



        Collection<String> search1 = search.search("湖", 10);
        for(Iterator it=search1.iterator();it.hasNext();){
            System.out.println(it.next());


        }



    }

}
